﻿<UserControl x:Class="SBPweb.PlAzureNet.Client.Library.Controls.StoreAction"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Loaded="UserControl_Loaded">
    
    <Grid x:Name="LayoutRoot">
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <TextBlock Text="In what kind of league?" Grid.Column="0" Grid.Row="3" Margin="5" />
        <ItemsControl x:Name="icLeagueType" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Center">
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <RadioButton GroupName="LeagueType" Margin="5" Content="{Binding}" />
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>

        <TextBlock Text="In which league exactly?" Grid.Column="0" Grid.Row="4" Margin="5" />
        <ComboBox x:Name="cmbxLeague" Grid.Column="1" Grid.Row="4" Height="23" Margin="3" />
        <TextBlock Text="How much of it?" Grid.Column="0" Grid.Row="2" Margin="5" />
        <TextBox x:Name="tbxQuantity" Grid.Column="1" Grid.Row="2" Height="23" Margin="3" />

        <Button x:Name="btnStoreAction" Grid.ColumnSpan="2" Grid.Row="5" Content="Do it!" Width="64" Height="64" Margin="0,20,0,0" VerticalAlignment="Center" HorizontalAlignment="Center" />
    </Grid>
</UserControl>
